From: Olaf Hering Date: Tue, 14 Dec 2010 18:50:16 +0000 (+0000) Subject: xenpaging: remove duplicate xc_interface_close call X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=77f428d66094ad7fc9651bddbc0bcc6590ac42ce;p=xen.git xenpaging: remove duplicate xc_interface_close call Fix double-free in xc_interface_close() because xenpaging_teardown() releases the *xch already. Remove second xc_interface_close() call. Signed-off-by: Olaf Hering Signed-off-by: Ian Jackson --- diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c index 2e0c8bd65f..94e611df0b 100644 --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -693,8 +693,6 @@ int main(int argc, char *argv[]) if ( rc == 0 ) rc = rc1; - xc_interface_close(xch); - DPRINTF("xenpaging exit code %d\n", rc); return rc; }